package qqgrou;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class QQGrou {

	public static void main(String[] args) throws Exception {
		File f = new File("res/qqgrou.txt");
		String s = FileUtils.readFileToString(f, "utf-8");
		s = s.replace("_Callback(", "").replace(");", "");
		//s = s.replace("_GroupMember_Callback(", "").replace(");", "");

		JSONArray ja = JSON.parseObject(s).getJSONObject("data").getJSONArray("item");

		for (int i = 0; i < ja.size(); i++) {
			JSONObject jo = (JSONObject) ja.get(i);
			if (!jo.getBooleanValue("iscreator") && !jo.getBooleanValue("ismanager")) {
				System.out.println(jo.getString("uin"));
			}

		}

	}

}
